/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.entidades;

import java.io.Serializable;
import java.math.BigInteger;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author JAVIER
 */
@Entity
@Table(name = "bdagrupados.ventasusuarionegocio")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "Ventasusuarionegocio.findAll", query = "SELECT v FROM Ventasusuarionegocio v"),
    @NamedQuery(name = "Ventasusuarionegocio.findByVunNegocio", query = "SELECT v FROM Ventasusuarionegocio v WHERE v.vunNegocio = :vunNegocio order by v.vunNumCupones"),
    @NamedQuery(name = "Ventasusuarionegocio.findByVunUsuario", query = "SELECT v FROM Ventasusuarionegocio v WHERE v.vunUsuario = :vunUsuario"),
    @NamedQuery(name = "Ventasusuarionegocio.findByVunEmail", query = "SELECT v FROM Ventasusuarionegocio v WHERE v.vunEmail = :vunEmail"),
    @NamedQuery(name = "Ventasusuarionegocio.findByVunNumVentas", query = "SELECT v FROM Ventasusuarionegocio v WHERE v.vunNumVentas = :vunNumVentas"),
    @NamedQuery(name = "Ventasusuarionegocio.findByVunNumCupones", query = "SELECT v FROM Ventasusuarionegocio v WHERE v.vunNumCupones = :vunNumCupones")})
public class Ventasusuarionegocio implements Serializable {
    private static final long serialVersionUID = 1L;
    @Column(name = "vun_negocio")
    private BigInteger vunNegocio;
    @Size(max = 45)
    @Column(name = "vun_usuario")
    private String vunUsuario;
    @Id
    @Size(max = 100)
    @Column(name = "vun_email")
    private String vunEmail;
    @Basic(optional = false)
    @NotNull
    @Column(name = "vun_num_ventas")
    private long vunNumVentas;
    @Column(name = "vun_num_cupones")
    private BigInteger vunNumCupones;

    public Ventasusuarionegocio() {
    }

    public BigInteger getVunNegocio() {
        return vunNegocio;
    }

    public void setVunNegocio(BigInteger vunNegocio) {
        this.vunNegocio = vunNegocio;
    }

    public String getVunUsuario() {
        return vunUsuario;
    }

    public void setVunUsuario(String vunUsuario) {
        this.vunUsuario = vunUsuario;
    }

    public String getVunEmail() {
        return vunEmail;
    }

    public void setVunEmail(String vunEmail) {
        this.vunEmail = vunEmail;
    }

    public long getVunNumVentas() {
        return vunNumVentas;
    }

    public void setVunNumVentas(long vunNumVentas) {
        this.vunNumVentas = vunNumVentas;
    }

    public BigInteger getVunNumCupones() {
        return vunNumCupones;
    }

    public void setVunNumCupones(BigInteger vunNumCupones) {
        this.vunNumCupones = vunNumCupones;
    }
    
}
